package com.qlk.test.odcinterface.rest;

import com.qlk.common.client.AbstractClient;
import com.qlk.odcinterface.domain.PmsFullCut;
import com.qlk.odcinterface.sdk.api.request.PmsFullCutRequest;
import org.junit.Test;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * PmsFullCutChannelResource单元测试
 * 
 * @author zhaoyanan
 * @version 2016-4-14 13:22:59
 * 
 */
public class PmsFullCutChannelResourceTestCase extends AbstractClient {
    
    @Test
    public void testGetPmsFullCutChannel() {
//        String url= Urls.API_DOMAIN + "/pmsFullCutChannel/getPmsFullCutChannel";
//
//        PmsFullCutChannelRequest request = new PmsFullCutChannelRequest();
////        request.setId(1l);
//        PmsFullCutChannelResponse response = super.getRestTemplate().postForObject(url, request, PmsFullCutChannelResponse.class);
//        Assert.notNull(response);
//        PmsFullCutChannel pmsFullCutChannel = super.getResult(response);
//        Assert.notNull(pmsFullCutChannel);
        PmsFullCutRequest pmsFullCutRequest = new PmsFullCutRequest();
        PmsFullCut pmsFullCut = new PmsFullCut();
        pmsFullCutRequest.setCreatedAt(new Date());
        pmsFullCutRequest.setUpdatedAt(new Date());

        BeanUtils.copyProperties(pmsFullCutRequest, pmsFullCut);
        System.out.println(pmsFullCut.getCreatedAt());

    }
}
